package com.fishV.BI.service;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fishV.BI.model.dto.chart.ChartQueryRequest;
import com.fishV.BI.model.dto.chart.GenChartByAiRequest;
import com.fishV.BI.model.entity.Chart;
import com.fishV.BI.model.vo.EchartResponseVO;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;

/**
 *
 */
public interface ChartService extends IService<Chart> {
    public QueryWrapper<Chart> getQueryWrapper(ChartQueryRequest chartQueryRequest);


    public EchartResponseVO genEchart(MultipartFile multipartFile,
                               GenChartByAiRequest genEchartRequest, HttpServletRequest request);

    public EchartResponseVO genEchartAsync(MultipartFile multipartFile,
                                      GenChartByAiRequest genEchartRequest, HttpServletRequest request);

    public EchartResponseVO genEchartAsyncMq(MultipartFile multipartFile,
                                           GenChartByAiRequest genEchartRequest, HttpServletRequest request);

}
